﻿
using BCCommon;
using BCDto.Common.Business.WebsiteBusinessCategory;
using BCDto.Common.Business.WebsiteBusinessIntroduction;
using BCDto.Sim.Admin.Admin;
using System;
using System.Collections.Generic;

namespace BCService.Common.Business.WebsiteBusinessIntroduction
{
    /// <summary>
    /// 官网业务简介
    /// </summary>
    public interface IWebsiteBusinessIntroductionService
    {
        #region  成员方法
        /// <summary>
        /// 是否存在此记录
        /// </summary>
        /// <param name="websiteBusinessIntroductionId">官网业务简介Id</param>
        bool Exists(int websiteBusinessIntroductionId);
        /// <summary>
        /// 添加官网业务简介
        /// </summary>
        /// <param name="requestDto">官网业务简介信息</param>
        /// <param name="adminDto">管理员信息</param>
        WebsiteBusinessIntroductionDto Add(WebsiteBusinessIntroductionRequestDto requestDto, AdminDto adminDto);
        /// <summary>
        /// 更新官网业务简介
        /// </summary>
        /// <param name="putDto">官网业务简介信息</param>
        /// <param name="adminDto">管理员信息</param>
        WebsiteBusinessIntroductionDto Update(WebsiteBusinessIntroductionPutDto putDto, AdminDto adminDto);
        /// <summary>
        /// 删除官网业务简介
        /// </summary>
        /// <param name="websiteBusinessIntroductionId">官网业务简介Id</param>
        bool Delete(int websiteBusinessIntroductionId);
        /// <summary>
        /// 获取官网业务简介
        /// </summary>
        /// <param name="websiteBusinessIntroductionId">官网业务简介Id</param>
        WebsiteBusinessIntroductionDto Get(int websiteBusinessIntroductionId);
        /// <summary>
        /// 获取官网业务简介列表
        /// </summary>
        /// <param name="businessCategoryId">业务分类Id</param>
        IEnumerable<WebsiteBusinessIntroductionDto> GetList(int? businessCategoryId);
        /// <summary>
        /// 获取官网业务分类及简介列表
        /// </summary>
        /// <param name="tagcode">标记</param>
        /// <returns></returns>
        IEnumerable<WebsiteBusinessCategoryViewDto> GetList(string tagcode);
        /// <summary>
        /// 获取官网业务简介分页列表
        /// </summary>
        /// <param name="tagcode">业务标记码</param>
        /// <param name="businessCategoryId">业务分类Id</param>
        /// <param name="itemName">简介项</param>
        /// <param name="start">开始时间</param>
        /// <param name="end">结束时间</param>
        /// <param name="sortName">排序字段</param>
        /// <param name="ascending">升序</param>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="pageSize">官网业务简介每页数据条数</param>
        PageableList<WebsiteBusinessIntroductionDto> Query(string tagcode,int? businessCategoryId, string itemName, DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize);
        /// <summary>
		/// 启用官网业务简介
		/// </summary>
		/// <param name="websiteBusinessIntroductionId">官网业务简介Id</param>
		bool Enabled(int websiteBusinessIntroductionId);
        /// <summary>
        /// 禁用官网业务简介
        /// </summary>
        /// <param name="websiteBusinessIntroductionId">官网业务简介Id</param>
        bool Disabled(int websiteBusinessIntroductionId);
        #endregion  成员方法

        #region 静态站点生成使用接口
        #region 获取业务介绍(带条数限制)
        IEnumerable<WebsiteBusinessCategoryViewDto> GetWebsiteBusinessIntroductionStaticPagingList(string tagcode, int? size);
        #endregion

        #endregion
    }
}